home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
PInterfaces
/
QDOffscreen.p
< prev
next >
Wrap
Text File
|
1996-05-01
|
5KB
|
192 lines
{
File: QDOffscreen.p
Contains: Quickdraw Offscreen GWorld Interfaces.
Version: Technology: System 7.5
Release: Universal Interfaces 3.0d3 on Copland DR1
Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
Bugs?: If you find a problem with this file, send the file and version
information (from above) and the problem description to:
Internet: apple.bugs@applelink.apple.com
AppleLink: APPLE.BUGS
}
{$IFC UNDEFINED UsingIncludes}
{$SETC UsingIncludes := 0}
{$ENDC}
{$IFC NOT UsingIncludes}
UNIT QDOffscreen;
INTERFACE
{$ENDC}
{$IFC UNDEFINED __QDOFFSCREEN__}
{$SETC __QDOFFSCREEN__ := 1}
{$I+}
{$SETC QDOffscreenIncludes := UsingIncludes}
{$SETC UsingIncludes := 1}
{$IFC UNDEFINED __ERRORS__}
{$I Errors.p}
{$ENDC}
{$IFC UNDEFINED __QUICKDRAW__}
{$I Quickdraw.p}
{$ENDC}
{$PUSH}
{$ALIGN MAC68K}
{$LibExport+}
{$IFC FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE }
CONST
pixPurgeBit = 0;
noNewDeviceBit = 1;
useTempMemBit = 2;
keepLocalBit = 3;
pixelsPurgeableBit = 6;
pixelsLockedBit = 7;
mapPixBit = 16;
newDepthBit = 17;
alignPixBit = 18;
newRowBytesBit = 19;
reallocPixBit = 20;
clipPixBit = 28;
stretchPixBit = 29;
ditherPixBit = 30;
gwFlagErrBit = 31;
pixPurge = $00000001;
noNewDevice = $00000002;
useTempMem = $00000004;
keepLocal = $00000008;
pixelsPurgeable = $00000040;
pixelsLocked = $00000080;
mapPix = $00010000;
newDepth = $00020000;
alignPix = $00040000;
newRowBytes = $00080000;
reallocPix = $00100000;
clipPix = $10000000;
stretchPix = $20000000;
ditherPix = $40000000;
gwFlagErr = $80000000;
TYPE
GWorldFlags = LONGINT;
{ Type definition of a GWorldPtr }
GWorldPtr = CGrafPtr;
FUNCTION NewGWorld(VAR offscreenGWorld: GWorldPtr; PixelDepth: INTEGER; {CONST}VAR boundsRect: Rect; cTable: CTabHandle; aGDevice: GDHandle; flags: GWorldFlags): QDErr;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0016, $0000, $AB1D;
{$ENDC}
FUNCTION LockPixels(pm: PixMapHandle): BOOLEAN;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $0001, $AB1D;
{$ENDC}
PROCEDURE UnlockPixels(pm: PixMapHandle);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $0002, $AB1D;
{$ENDC}
FUNCTION UpdateGWorld(VAR offscreenGWorld: GWorldPtr; pixelDepth: INTEGER; {CONST}VAR boundsRect: Rect; cTable: CTabHandle; aGDevice: GDHandle; flags: GWorldFlags): GWorldFlags;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0016, $0003, $AB1D;
{$ENDC}
PROCEDURE DisposeGWorld(offscreenGWorld: GWorldPtr);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $0004, $AB1D;
{$ENDC}
PROCEDURE GetGWorld(VAR port: CGrafPtr; VAR gdh: GDHandle);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0008, $0005, $AB1D;
{$ENDC}
PROCEDURE SetGWorld(port: CGrafPtr; gdh: GDHandle);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0008, $0006, $AB1D;
{$ENDC}
PROCEDURE CTabChanged(ctab: CTabHandle);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $0007, $AB1D;
{$ENDC}
PROCEDURE PixPatChanged(ppat: PixPatHandle);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $0008, $AB1D;
{$ENDC}
PROCEDURE PortChanged(port: GrafPtr);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $0009, $AB1D;
{$ENDC}
PROCEDURE GDeviceChanged(gdh: GDHandle);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $000A, $AB1D;
{$ENDC}
PROCEDURE AllowPurgePixels(pm: PixMapHandle);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $000B, $AB1D;
{$ENDC}
PROCEDURE NoPurgePixels(pm: PixMapHandle);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $000C, $AB1D;
{$ENDC}
FUNCTION GetPixelsState(pm: PixMapHandle): GWorldFlags;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $000D, $AB1D;
{$ENDC}
PROCEDURE SetPixelsState(pm: PixMapHandle; state: GWorldFlags);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0008, $000E, $AB1D;
{$ENDC}
FUNCTION GetPixBaseAddr(pm: PixMapHandle): Ptr;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $000F, $AB1D;
{$ENDC}
FUNCTION NewScreenBuffer({CONST}VAR globalRect: Rect; purgeable: BOOLEAN; VAR gdh: GDHandle; VAR offscreenPixMap: PixMapHandle): QDErr;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000E, $0010, $AB1D;
{$ENDC}
PROCEDURE DisposeScreenBuffer(offscreenPixMap: PixMapHandle);
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $0011, $AB1D;
{$ENDC}
FUNCTION GetGWorldDevice(offscreenGWorld: GWorldPtr): GDHandle;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $0012, $AB1D;
{$ENDC}
FUNCTION QDDone(port: GrafPtr): BOOLEAN;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $0013, $AB1D;
{$ENDC}
FUNCTION OffscreenVersion: LONGINT;
{$IFC NOT GENERATINGCFM}
INLINE $7014, $AB1D;
{$ENDC}
FUNCTION NewTempScreenBuffer({CONST}VAR globalRect: Rect; purgeable: BOOLEAN; VAR gdh: GDHandle; VAR offscreenPixMap: PixMapHandle): QDErr;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $000E, $0015, $AB1D;
{$ENDC}
FUNCTION PixMap32Bit(pmHandle: PixMapHandle): BOOLEAN;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $0016, $AB1D;
{$ENDC}
FUNCTION GetGWorldPixMap(offscreenGWorld: GWorldPtr): PixMapHandle;
{$IFC NOT GENERATINGCFM}
INLINE $203C, $0004, $0017, $AB1D;
{$ENDC}
{$ENDC}
{$ALIGN RESET}
{$POP}
{$SETC UsingIncludes := QDOffscreenIncludes}
{$ENDC} {__QDOFFSCREEN__}
{$IFC NOT UsingIncludes}
END.
{$ENDC}